﻿@using Masa.Blazor.Presets.PageContainer
@namespace SwashbucklerDiary.Components
@inherits PatternPathComponentBase

<MWindow Class="@CssProvider.GetClass()"
         Style="@CssProvider.GetStyle()"
         Value="@_currentPatternPath?.Pattern">
    @foreach (var path in _patternPaths.OrderBy(u => u.CreatedAt))
    {
        <MWindowItem Transition="" Style="height: 100%" Value="@path.Pattern" @key="path.Pattern">
            <PPageContainerItem Value="@(path.Pattern == GetCurrentPatternPath().Pattern)">
                @ChildContent
            </PPageContainerItem>
        </MWindowItem>
    }
</MWindow>
